Add control files

some changes on public_home, control files, and estabilish connection with database