Work on "ORM"

 - Added metadata to model struct, with related methods
 - Abstracted hardcoded DB info out of database functions (WIP)