Checking for database at startup and creating if necessary.