refatoring table inserting