Added solution for prepreparing inserts and added cli tool for testing