first converting attempt made by ErikMinekus

(cherry picked from commit 08dd4de4b7779f0c08704aa7e864bd77bbd3facc)
changing sql-table schema

(cherry picked from commit cb9084d4b4caf22a29bed421b1bdbab45f0832a6) (only php code, not plugin)
Conflicts:
	game_upload/scripting/sourcecomms.sp
Add comm's type option to search

(cherry picked from commit 144a9cdb682a1b9efaeeadfafaf38b476ee723fc)