sql updates, and style updates