modified initialization of database bean so that it only happens on dev profile