save a db query
public api for /file endpoint
add upload endpoint to api
make api a blueprint