add ability to store to database and retrieve from there