FIX: fixed wrong values count in add_entry SQL code