Sync functions and support for js arrays

Added support for sync functon for batch processing
Added copy to move data between real and inmemory dbs
Added support for js arrays in bind parameters