Refactoring db logic into service layer. Remove db refs in main.go
Remove Database init in api