Isolated DB logic in it's own module