Initializing server state from db