database config plus set up controller, model

Insert test template, controller and model