Added db functionality.
Created app dir