refactored db file, added status model