Some error-handling

Catches some errors
Ignore sqlites