Database script for adschool