fixes #4932 and #4731 - add rake db:sequences:reset to prevent duplicate primary key errors in PostgreSQL