A fix for the table element -> properly get first element
added some more classes to the db file... still subject to change.