begin adding db schema
temporary workaround to use opium
generate code to access db
store right_key's in db