Fixing database initiation SQL