Transfer SQL inserted & back search function