database keys! fixes #23

also fixes #25, fixes #26