base services to handle data from/to database