Added load db functionality