Added a pending status.
Added a /ticket setpending <id> command
The database connections will last 0,2 seconds instead of being closed and reopened after every method
Some tweaking.