fixed database methods