added imgur, get channel numbers from db, a little better error handling, cleaned up a bit