add horse images
speed up Total* functions
add static function for active database
speed up player page
add db_*.php files to gitignore