Complete post request functionality (currently w/o error handling). Add default values to posts table and new device column. Handle json format for incoming request