fix rake db task fail