Open the db and populate it if db doens't exist.