added minmal db connectivity[dirty]