Prevent database connection when precompiling