model, server, db methods