Initialize database if it does not exist