Fixed database insertion to work on personal computer

done by matt, compiled on kevin's computer