finished up core db functions