wtoDatabase working