Ensure database module is initialised before JPA module