add get() and get_mut() API to database