Implement database- and server-functions