view starting to rely on database.c