Updated packages and added project for SqlServer.
Moved stuff around and reformatted the code.