Adds database permission for services on localhost

Edits the setup_database function to grant all privileges
on all services to localhost.

Change-Id: Ia39b3c927cb2ba2abe47d1bbd1061bda4f6d2baa