add rake script for update database