database classes, example with mysql, query builder