Added db insert functions