If you want to use existing database instance that is used for Mailcow for this forum, than don’t.
You do not want to investigate what is wrong in case of Mailcow change something in database, or change database to Postgresql or somethink else and vice versa.
Keep your forum separate, if you want some connection between two of those, use standard public facing interfaces like IMAP or API.