JNDI connections and local initialization

This changes adds support for getting a datasource from JNDI and
causes the database to be initialized when running with the local
profile.