Sync commits 22/10/14
added SQL script