PHP CLass for manipulating with database.