added models and database class

added models
added database class (wrapper pdo)