initDB insert query in wrong location