added the read and write functions to my_db_gen
fixed db:read to return {ok, Element} instead of {Key, Element}