lots of new code

php, mysql database