diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index 5525ab77435260f717b9f04456184ddfe3459201..dca5e1c5db3b141d7e0f34c4dd0fbc48f2f7e452 100755
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -4,7 +4,7 @@ if [ -f /.dockerinit ]; then
     dpkg -i phantomjs_1.9.0-1+b1_amd64.deb
 
     apt-get update -qq
-    apt-get install -y -qq libicu-dev libkrb5-dev cmake nodejs
+    apt-get install -y -qq libicu-dev libkrb5-dev cmake nodejs postgresql-client mysql-client
 
     cp config/database.yml.mysql config/database.yml
     sed -i 's/username:.*/username: root/g' config/database.yml