Phase model added

please use phase.sql for db schema, and use getPhase(phase_id) method
for retrieve phase model. and use getphase_type() method for retrieve
phase type