Database problem solved