Avoid multiple initialization of database