change name to create_db
add a retrieval function