Refactoring - Split main.go and database package up