changed to gin framework, added database support