#220 Prepare database