1.2.1: Add try-catch for queries

Add a try-catch for queries and attempt to recreate the DB PDO if try
fails once.