Make inserting new records into a database easier and neater with this simple snippet.