Messages repository and query builder initial.
Initial utils.