automat insert mkd into db