+ Added rudimentary models and model handler and moved database stuff to that.