Moving database creation logic to seperate file/class