You must error check the return value of database calls, because if it can't connect or something goes awry you'll get an `undef` back.