Backend updates

Added getFromTable($tablename, $attributes, $where) function to
core/db.class.php.

Also created a test.getFromTable.php to see how this shit works.