make db initialize synchronized so the db will only be created once.