Got database insertion to work.