Inserting message into SQLite and creating status endpoint