starts_with, notice backtraces, better database error reporting and return values