var Database = require('../lib/database');

function Users(session) {
	this.session = session;
	this.usersDB = new Database('users', session);
}

Users.prototype.find = function(query, fn) {
	this.usersDB.find(query, fn);
};

Users.prototype.insert = function(object, fn) {
	this.usersDB.insert(object, fn);
};

Users.prototype.upsert = function(query, object, fn) {
	this.usersDB.upsert(query, object, fn);
};

module.exports = Users;