initialize database before inserting modules