Modified the database paths to include the basepaths. Will now work in Rails apps.