fixed database methods for bug report