add active record database
fix