Improve insert performance

Use SQL for inserting instead of ORM. Add support for `skipduplicates` option.
Removed ability to insert data for multiple channels at once.