check if db exists and if not create it.