correct function signature for db_open
ex17 - continue build of functions