Automatically update database from SQL file