added in SQL script for users table

some other fixes after namespace change etc