created Classes to connection with database and to people