Upload now adds to db, also fixed routing