php framework implementing mvc and mysql db usage class