add server-side database methods