Continued with coding convention: - added curly braces around conditional code blocks - added space between if/foreach/... and brace - rewrote a code block so if dbm::is_result() fails it will abort, else the id   is fetched from INSERT statement - made some SQL keywords upper-cased and added back-ticks to columns/table names
Continued with coding convention:
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
  is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names

Signed-off-by: Roland Haeder <0d270388f2f92757a5de0f4bd891d3b392c44c4f@mxchange.org>

fabrixxm/friendica,friendica/friendica,fabrixxm/friendica,tobiasd/friendica,fabrixxm/friendica,tobiasd/friendica,friendica/friendica,annando/friendica,fabrixxm/friendica,friendica/friendica,tobiasd/friendica,friendica/friendica,fabrixxm/friendica,tobiasd/friendica,friendica/friendica,annando/friendica,tobiasd/friendica,annando/friendica,annando/friendica,annando/friendica