Working with server database