Add styles, layouts, and images, fix some SQL queries