Splitting DB layer into separate files