testing database retrieval