added some php files, database stuff