Added some try/except to db stuff, need to add more.