basic documentation update

update to base documentation and some adjustmens to old mysql db class
to be compatible with ORM class wich is adjusted for PDO