schema.c: Prevent the creation of duplicate tables

To accomplish this, we simply loop over the list of existing tables.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>