disconnect method on database