got rid of redundant files, don't need models on the clients' side
rewrote rest apis, added database query logic