Separate interface, models and database queries.
Make code more pleasant to read.