Added controller specs and fixed build script

Added more controller specs and fixed the build script so that it
doesn't drop the database.