Fixed db retrieval