Compute points in the database.
Fix buggy implementation of specifying table prefixes.