initial import
Merge pull request #3 from cfahner/addbackend

merge all php files, SQL style