+Added extension to check that records exists in database command.
+Added string formatting routine for database.