Added database load to API
Added MTDB append check