Add a db wrapper
Update rebar.config
Use erlang make for compiling the application