Fixed hash representation in DB