Stop using structure.sql

Since we support Postgres 8 in RHEL and Postgres 9 in Fedora, we can't use structure.sql because of incompatibilities. Here instead we've switched back to schema.rb and disabled it its usage (using migrate instead) until the foreign key situation is fixed.