Added key_as_id in Database select