added saving server to db