Running the database through database.php is working

fixed issues with the parsing of the data from the table/model
code is confusing since right now the table is named version and there
is a key named version, need to find the name of the table we on
build.eclipse.org so i can change that. will clean up the code after
sara sanatizes