db working for both platforms