Bug in type of ID in database int - long