Write to database
initialise database: completely independant
replace inf w/ na
bugfix: apply to sql, 'inf' is string not var