Move DB setup code into functions for better reusability & let composer handle some
more file loading