update database to return only requested keys