completed database/table initialization logic