Adding ticket to database