get_id_db,get_id,put_id functions added and tested