Determine MIME Type from file extension if null
Lots of additional checks to make sure database is ready throughout calls
Database checks and timer scheduling modifications