Overall update

Small changes to the most of the files, added db.class.php with new
features compared to the old db.php file witch is now removed.