add rails_config
add search function
change table type to usage