add conditional statement for switch between databases
make our application modulized
add integration test