refactory and further development
Development od insert statement