db insertions now work