added a standard way of initializing dababases