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 was missing.

Things now work out of the box. Hurray!