Commiting the last working copy of the database_interface module before I try to define relationship on the tables.
Migrated some core functions back into database_interface.