parse database erb file for configuration