Removed sqlite permissions check and debug handler

sqlite permissions errors now get caught by the appropriate Exception
handler, debug is now handled by alert()