Move db directory into app directory