Db insert feature fixed, updated