handling sqlite exceptions, client commands for area was moved into separate module