Add missing require and directories

- `rake db:migrate` was failing after a fresh git clone because the db/ directory was missing.
- `script/server` was failing because of the missing `require "active_record"` and because the log/ directory is missing.

Things now work out of the box. Hurray!