0.2.2 take db as input of main function and starting to log via main logger