Connects to the Ckydb instance, initializing it with its background tasks and returns it.
max_file_size_kb is the maximum file size permitted for the database files. Make sure it fits in RAM.
vacuum_interval_sec is the time between vacuuming cycles for the database.