added basic model php file, still needs most implementation